package com.squirrel.common.mapper;

import com.squirrel.common.entity.Channel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 频道接口
 * </p>
 *
 * @author 关远键
 * @since 2021/11/11 16:06
 */
@Repository
public interface ChannelMapper extends BaseMapper<Channel> {

    Channel getChannelById(@Param("id") Integer id);

    List<Channel> getChannelListByParentId(@Param("parentId") Integer parentId);

    List<Channel> getAllChannel();

}
